import { Application } from 'egg';

export default (app: Application) => {
  const { controller, router } = app;

  router.get('/', controller.home.index);
  router.get('/wecode/signature', controller.wecode.getUrlSignature);
  router.post('/file/upload', controller.file.upload);
  router.get('/wecode/user', controller.wecode.getUserInfo);
  router.get('/uploadfile/:name', controller.file.getFile);
};
